"""

num = 0
sum = 0
while num <= 100:
    sum += num
    num += 1
print("和为%d" % sum)

"""

"""

count = 0
sum_count = 0
while count <= 10:
    count += 1
    if count % 2 == 0:
        sum_count += count
print("偶数和为%d" % sum_count)

"""


"""
正放星星
h = 1
while h <= 5:
    line = 1
    while line <= h:
        print("*", end='')
        line += 1
    print()
    h += 1
    
"""
# 倒置星星
shu = 1
while shu <= 5:
    hang = 5
    while hang >= shu:
        print("*", end="")
        hang -= 1
    print()
    shu += 1

one = 1
while one <= 9:
    two = 1
    while two <= one:
        print("%d * %d =%-5d" % (two, one, (one*two)), end='')
        two +=1
    print()
    one += 1

name = "zhangshan"
for name in ("zhangshan"):
    print(name, end=' ')

print()

for num in range(1,4):    # 左闭右开  1 2 3
    print(num, end='  ')

print()

for num0 in range(4):    # 左闭右开,0开始可以省略  0 1 2 3
    print(num0, end='  ')






